import Vue from 'vue'
import VueRouter from 'vue-router'


const Layout = () => import('@/views/layout')
const Home = () => import('@/views/home')
const Hospital = () => import('@/views/space/hospital/index')
const Way = () => import('@/views/space/way/index')
const Department = () => import('@/views/space/department')
const Statistical = () => import('@/views/space/statistical')


Vue.use(VueRouter)

const routes = [
 
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    hidden: true,
    children: [
     {
       path: '/',
       name: 'Home',
       component: Home,
       hidden: true,
       meta: {title: '首页'}
     },
     {
       path: '/hospital',
       name: 'Hospital',
       component: Hospital,
       hidden: true,
       meta: {title: '医院管理'}
     },
     {
       path: '/way',
       name: 'Way',
       component: Way,
       hidden: true,
       meta: {title: '路线管理'},
     },
     {
       path: '/department',
       name: 'department',
       component: Department,
       hidden: true,
       meta: {title: '科室房间'},
     },
     {
       path: '/statistical',
       name: 'statistical',
       component: Statistical,
       hidden: true,
       meta: {title: '报表中心'},
     },
    ]
    

  }
]

const router = new VueRouter({
  routes
})

export default router
